package methods;

import main.Paycheck;

public class DirectDepositMethod implements PaymentMethod {
	private String bank;
	private String accountNumber;

	public DirectDepositMethod(String bank, String accountNumber) {
		this.bank = bank;
		this.accountNumber = accountNumber;
	}

	public void Pay(Paycheck paycheck) {
		paycheck.setField("Disposition", "Direct");
	}

	public String getBank() {
		return bank;
	}

	public String getAccountNumber() {
		return accountNumber;
	}

	public String ToString() {
		return "direct deposit into " + bank + ":" + accountNumber;
	}
}
